package com.linghang.wusthelper.dao.primary;

import com.linghang.wusthelper.entity.primary.Announcement;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @author origin
 */
@Repository
//主数据源的SqlSessionTemplate
@Qualifier("primarySqlSessionTemplate")
public interface AnnouncementDao {

    int insert(Announcement announcement);

    int existTitle(String title);

    List<Announcement> selectList();

    String getContent(int announcementId);

    Date find70();

    void deleteMore(Date date);
}
